﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PacoteConsulta.aspx.cs" Inherits="NewTierra.Pages.CPacote.PacoteConsulta" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <link href="../../Styles/jquery_notification.css" rel="stylesheet" />
    <link href="../../Styles/jquery-ui.css" rel="stylesheet" />

    <script src="../../Scripts/jquery-1.11.0.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.10.0.min.js" type="text/javascript"></script>

    <script src="../../Scripts/jquery.MultiFile.js" type="text/javascript"></script>

    <script type="text/javascript" src="http://ashishblog.com/ash/source/jquery.tablesorter-2.0.3.js"></script>

    <script type="text/javascript" src="../../Scripts/jquery_notification_v.1.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="../../Scripts/bootstrap.min.js" type="text/javascript"></script>

    <link type="text/css" rel="stylesheet" href="http://ashishblog.com/ash/source/style.css" />

    <link href="../../Styles/bootstrap.min.css" rel="stylesheet" />
    <link href="../../font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" />

    <title>Pacote</title>

    <style type="text/css">
        .highlight
        {
            text-decoration: none;
            color: black;
            background: yellow;
        }

        #EnviarVerFotos
        {
            height: 381px;
        }

            #EnviarVerFotos .Upload
            {
                height: 323px;
                width: 429px;
                float: left;
            }

            #EnviarVerFotos .DataListFotos
            {
                width: 325px;
                float: left;
                height: 339px;
                overflow-x: hidden;
                overflow-y: auto;
            }

        .popular-foto-col
        {
            background: #FFF;
            width: 80px;
            float: left;
            margin: 13px 0px 0px 7px;
            text-align: center;
            height: 76px;
        }

        .popular-foto-img-border
        {
            border: 1px solid #E6E6E6;
            padding: 2px;
            width: 72px;
            height: 72px;
        }
    </style>

    <script type="text/javascript">

        jQuery(function ($) {
            $.datepicker.regional['pt-BR'] = {
                closeText: 'Fechar',
                prevText: '&#x3c;Anterior',
                nextText: 'Pr&oacute;ximo&#x3e;',
                currentText: 'Hoje',
                monthNames: ['Janeiro', 'Fevereiro', 'Mar&ccedil;o', 'Abril', 'Maio', 'Junho',
             'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'],
                monthNamesShort: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun',
             'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
                dayNames: ['Domingo', 'Segunda-feira', 'Ter&ccedil;a-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sabado'],
                dayNamesShort: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                dayNamesMin: ['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab'],
                weekHeader: 'Sm',
                dateFormat: 'dd/mm/yy',
                firstDay: 0,
                isRTL: false,
                showMonthAfterYear: false,
                yearSuffix: ''
            };
            $.datepicker.setDefaults($.datepicker.regional['pt-BR']);
        });

        $(function () {
            $("#txtDataFromSearch").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                onClose: function (selectedDate) {
                    $("#txtDataToSearch").datepicker("option", "minDate", selectedDate);
                }
            });
            $("#txtDataToSearch").datepicker({
                defaultDate: "+1w",
                changeMonth: true,
                changeYear: true,
                numberOfMonths: 1,
                onClose: function (selectedDate) {
                    $("#txtDataFromSearch").datepicker("option", "maxDate", selectedDate);
                }
            });
            $.datepicker.formatDate('yyyy-mm-dd');
        });
        $('#myModal').modal(options);

        function removeModalClass() {
            $('#myModal').modal('hide');
            $('body').removeClass('modal-open');
            $('.modal-backdrop').remove();
        }

        jQuery(document).ready(function () { $("#gvPacotes").tablesorter({ debug: false, widgets: ['zebra'], sortList: [[0, 0]] }); });

        function jScript() {

            $('#myTab a').click(function (e) {
                e.preventDefault()
                $(this).tab('show')
            })

        }


        function changeTab() {
            $('.nav-tabs a[href="#Editar"]').tab('show');
        }

    </script>

</head>
<body>

    <script type="text/javascript">

        function showAutoCloseMessage(MsgsExc) {
            showNotification({
                message: MsgsExc,
                autoClose: true,
                type: "success",
                duration: 2
            });
        }

        function checkExtension(sender, args) {
            var filename = args.get_fileName().toLowerCase();
            var ext = filename.substring(filename.lastIndexOf(".") + 1);
            if (ext != 'jpg' && ext != 'png' && ext != 'jpeg' && ext != 'gif') {
                alert('Favor enviar somente arquivos (.png e .jpg)');
                return false;
            }
            else
                return true;
        }

        function uploadComplete(sender) {
            $get("<%=lblMesg.ClientID%>").innerHTML = "Foto enviada com sucesso!";
        }

        function uploadError(sender) {
            $get("<%=lblMesg.ClientID%>").innerHTML = "Ouve um erro, tente novamente.";
        }
    </script>

    <form id="form1" runat="server">

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

        <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
          <div class="container" style="margin-top: 4px;">
            <asp:LinkButton ID="lnkVoltaMenu"
                                    runat="server"
                                    CssClass="btn btn-primary"
                                    OnClick="lnkVoltaMenu_Click" ToolTip="Menu">
                                    <i class="fa fa-home fa-2x"></i>
                                </asp:LinkButton>
          </div>
        </nav>

        <br />

        <div class="container">

            <div class="page-header">
                <h3>Pacote</h3>
            </div>


            <div class="panel panel-default">
                <div class="panel-heading">
                    <i class="fa fa-camera"></i><b>&nbsp;Gerenciar Pacotes</b>
                </div>


                <div class="panel-body">

                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#Pacotes" data-toggle="tab">PACOTES</a></li>
                        <li><a href="#Editar" data-toggle="tab">EDIT</a></li>
                    </ul>

                    <div class="tab-content">

                        <div class="tab-pane fade in active" id="Pacotes">

                            <br />

                            <nav class="navbar navbar-default" style="padding: 8px;" role="navigation">
                                            <div class="row">
                                                <div class="col-md-4">
                                                    <asp:TextBox ID="txtNomePacoteSearch" runat="server" class="form-control" placeholder="Nome do Pacote ou Código Pacote" />
                                                </div>

                                                <div class="col-md-2">
                                                    <asp:TextBox ID="txtDataFromSearch" runat="server" class="form-control" placeholder="Data From" />
                                                    </div>

                                                <div class="col-md-2">
                                                    <asp:TextBox ID="txtDataToSearch" runat="server" class="form-control" placeholder="Data To" />
                                                    </div>

                                                <div class="col-md-2">
                                                <asp:LinkButton ID="btnProcurarDatas"
                                                            runat="server"
                                                            CssClass="btn btn-info" ToolTip="Procurar por datas" OnClick="btnProcurarDatas_Click" >
                                                <i class="fa fa-search"></i>
                                                        </asp:LinkButton>
                                                    <br />

                                                <%--<div class="col-md-2">
                                                    <asp:Button ID="btnProcurar" runat="server" CssClass="btn btn-primary" Text="Procurar" />
                                                </div>--%>
                                            </div>
                                        </nav>

                            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                <ContentTemplate>

                                    <script type="text/javascript">
                                        Sys.Application.add_load(jScript);
                                    </script>

                                    <div class="GridviewDiv">

                                        <asp:GridView ID="gvPacotes" runat="server" CssClass="table table-striped table-bordered table-hover" GridLines="None" CellSpacing="-1" AutoGenerateColumns="false">
                                            <Columns>

                                                <asp:BoundField DataField="Pacote_Code" HeaderText="Code" SortExpression="Pacote_Code" />

                                                <asp:BoundField DataField="Pacote_NomePacote" HeaderText="Nome" SortExpression="Pacote_NomePacote" />

                                                <asp:BoundField DataField="DataFrom" HeaderText="Data From" DataFormatString="{0:dd/MM/yyyy}" SortExpression="DataFrom" />

                                                <asp:BoundField DataField="DataTo" HeaderText="Data To" DataFormatString="{0:dd/MM/yyyy}" SortExpression="DataTo" />

                                                <asp:TemplateField HeaderText="Editar">
                                                    <ItemTemplate>

                                                        <asp:LinkButton ID="btnEditar"
                                                            runat="server"
                                                            CssClass="btn btn-default" OnClientClick="changeTab()" OnCommand="btnEditar_Command" CommandArgument='<%# Eval("Pacote_Code") %>'>
                                                <i class="fa fa-pencil-square-o"></i>
                                                        </asp:LinkButton>

                                                        <asp:LinkButton ID="btnDeletar"
                                                            runat="server"
                                                            CssClass="btn btn-default" OnCommand="btnDeletar_Command" CommandArgument='<%# Eval("Pacote_Code") %>'>
                                                <i class="fa fa-times"></i>
                                                        </asp:LinkButton>

                                                    </ItemTemplate>
                                                </asp:TemplateField>

                                            </Columns>
                                        </asp:GridView>

                                    </div>

                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>

                        <div class="tab-pane fade" id="Editar">

                            <br />

                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <Triggers>
                                    <%--<asp:PostBackTrigger ControlID="btnSalvarDescr" />--%>
                                    <%--<asp:PostBackTrigger ControlID="btnUpload" />--%>
                                </Triggers>
                                <ContentTemplate>

                                    <script type="text/javascript">
                                        Sys.Application.add_load(jScript);
                                    </script>

                                    <div class="modal fade bs-example-modal-lg" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                                    <h4 class="modal-title" id="myModalLabel">
                                                        <asp:Label ID="lblTituloModal" runat="server" Text="" />
                                                    </h4>
                                                </div>
                                                <div class="modal-body">

                                                    <asp:Panel ID="Paneldescr" runat="server" Visible="false">
                                                        <cc1:Editor ID="EditorDescrPacote" runat="server" NoUnicode="true" Height="350px" />
                                                    </asp:Panel>

                                                    <div id="EnviarVerFotos" runat="server">

                                                        <div class="Upload">

                                                            <div class="row">
                                                                <div class="col-md-4">


                                                                    <%-- <asp:FileUpload ID="FileUpload1" runat="server" />--%>

                                                                    <asp:AsyncFileUpload ID="AsyncFileUpload1" OnClientUploadError="uploadError"
                                                                        OnClientUploadComplete="uploadComplete" runat="server"
                                                                        Width="200px" UploaderStyle="Traditional"
                                                                        CompleteBackColor="White" OnClientUploadStarted="checkExtension"
                                                                        UploadingBackColor="#CCFFFF" ThrobberID="imgLoader" AllowMultiple="true"
                                                                        OnUploadedComplete="FileUploadComplete" />
                                                                    <asp:Image ID="imgLoader" runat="server"
                                                                        ImageUrl="~/images/ajax-loader.gif" />
                                                                    <br />
                                                                    <asp:Label ID="lblMesg" runat="server" Text=""></asp:Label>
                                                                </div>
                                                            </div>

                                                            <%--<br />--%>

                                                            <%--<div class="row">
                                                                <div class="col-md-4">
                                                                    <asp:Button ID="btnUpload" CssClass="btn btn-primary" runat="server" Text="Enviar" OnClick="btnUpload_Click" />
                                                                </div>
                                                            </div>--%>
                                                        </div>

                                                        <div class="DataListFotos">
                                                            <asp:ImageButton ID="imgAtualiza" runat="server" OnClick="imgAtualiza_Click" ToolTip="Atualizar fotos" ImageUrl="~/images/Icones/atualizar.png" />
                                                            <asp:DataList ID="DataListFotos" runat="server" RepeatDirection="Horizontal" RepeatColumns="3"
                                                                CellPadding="10">
                                                                <ItemTemplate>

                                                                    <div style="margin-right: 5px; margin-bottom: 3px;">
                                                                        <asp:Image ID="Image2" runat="server" Width="100px" Height="100px" class="img-thumbnail" ImageUrl='<%# String.Format("~/Galeria/Pacote/{0}/{1}", DataBinder.Eval(Container.DataItem,"Pacote_Code"), DataBinder.Eval(Container.DataItem, "Pacote_Foto_nome"))%>' ToolTip='<%# DataBinder.Eval(Container.DataItem,"Pacote_Foto_memo") %>' />
                                                                        <asp:Label ID="lblIdImage" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Pacote_Foto_id") %>' Visible="false" />
                                                                    </div>

                                                                    <div style="margin-top: 3px;">
                                                                        <asp:LinkButton ID="btnCapaFoto"
                                                                            runat="server"
                                                                            CssClass="btn btn-default" ToolTip="Colocar foto como imagem principal." OnCommand="CapaFoto" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"Pacote_Foto_id") %>'>
                                                                    <i class="fa fa-picture-o"></i>
                                                                        </asp:LinkButton>

                                                                        <asp:LinkButton ID="btnExcluirFoto"
                                                                            runat="server"
                                                                            CssClass="btn btn-default" ToolTip="Excluir Foto" OnCommand="ExcluirFoto" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"Pacote_Foto_id") %>'>
                                                                    <i class="fa fa-times"></i>
                                                                        </asp:LinkButton>
                                                                    </div>
                                                                    <br />
                                                                    <br />
                                                                </ItemTemplate>

                                                            </asp:DataList>

                                                        </div>

                                                    </div>

                                                </div>
                                                <div class="modal-footer">
                                                    <asp:Button runat="server" ID="btnSalvarDescr" CssClass="btn btn-primary" Text="Salvar" OnClick="btnSalvarDescr_Click" />
                                                    <asp:Button runat="server" ID="btnFecharDescr" CssClass="btn btn-default" Text="Fechar" data-dismiss="modal" />
                                                </div>

                                            </div>
                                        </div>
                                    </div>

                                    <div class="row">

                                        <div class="col-md-6">
                                            <strong>
                                                <asp:Label ID="lblCodePacoteTXT" runat="server" Text="Código:" /></strong>
                                            <asp:Label ID="lblCodePacote" runat="server" Text="" />
                                        </div>

                                    </div>

                                    <br />

                                    <div class="row">
                                        <div class="col-md-6">
                                            <strong>
                                                <asp:Label ID="lblNomePacoteTXT" runat="server" Text="Nome Pacote" /></strong>
                                            <asp:TextBox ID="txtNomePacote" runat="server" MaxLength="200" CssClass="form-control" />
                                        </div>
                                    </div>

                                    <br />

                                    <div class="row">
                                        <div class="col-md-2">
                                            <strong>
                                                <asp:Label ID="lblValorTotal" runat="server" Text="Valor Total" /></strong>
                                            <asp:TextBox ID="txtValorTotal" runat="server" MaxLength="200" CssClass="form-control" />
                                        </div>
                                        <div class="col-md-2">
                                            <br />
                                            <asp:LinkButton ID="btnSalvaTotal"
                                                runat="server"
                                                CssClass="btn btn-success" OnClick="btnSalvaTotal_Click">
                                    <i class="fa fa-usd"></i> Salvar total
                                            </asp:LinkButton>
                                        </div>
                                        <div class="col-md-2">
                                            <br />
                                            <asp:LinkButton ID="btnAddDecricao"
                                                runat="server"
                                                CssClass="btn btn-success" OnClick="btnAddDecricao_Click">
                                    <i class="fa fa-plus-square"></i> Adicionar descrição
                                            </asp:LinkButton>
                                        </div>
                                        <div class="col-md-2">
                                            <br />
                                            <asp:LinkButton ID="btnAddFotos"
                                                runat="server"
                                                CssClass="btn btn-success" OnClick="btnAddFotos_Click">
                                    <i class="fa fa-picture-o"></i> Adicionar fotos
                                            </asp:LinkButton>
                                        </div>
                                    </div>

                                    <br />

                                    <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                                        <div class="panel panel-default">
                                            <div class="panel-heading" role="tab" id="headingOne">
                                                <h4 class="panel-title">
                                                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">GERAL
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
                                                <div class="panel-body">

                                                    <div class="row">
                                                        <div class="col-md-8">

                                                            <asp:GridView ID="gvPkgMontado" runat="server" CssClass="table table-striped table-bordered table-hover" GridLines="None" CellSpacing="-1" AutoGenerateColumns="false">
                                                                <Columns>

                                                                    <asp:TemplateField HeaderText="Cidade">
                                                                        <ItemTemplate>
                                                                            <strong>
                                                                                <asp:Label ID="lblCidadeIata" runat="server" Text='<%# Eval("Cidade") %>' Font-Size="Smaller" />
                                                                            </strong>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="Nome">
                                                                        <ItemTemplate>

                                                                            <asp:Label ID="lblNomeQuote1" runat="server" Text='<%# Eval("SuppNome") %>' />
                                                                            <strong>
                                                                                <asp:Label ID="lblCateg" runat="server" Text='<%# Eval("SuppNome") != null ? string.Format("{0} - {1}", Eval("Categoria"), Eval("Room")) : ""  %>' Font-Size="Smaller" /></strong>

                                                                            <asp:Label ID="lblNomeQuote2" runat="server" Text='<%# Eval("ServNome") %>' />
                                                                            <asp:Label ID="lblNomeQuote3" runat="server" Text='<%# Eval("ServExtraNome") %>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                            </asp:GridView>

                                                        </div>
                                                    </div>

                                                </div>
                                            </div>
                                        </div>
                                        <div class="panel panel-default">
                                            <div class="panel-heading" role="tab" id="headingTwo">
                                                <h4 class="panel-title">
                                                    <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">HOTEIS
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                                                <div class="panel-body">
                                                    <div class="row">
                                                        <div class="col-md-8">
                                                            <asp:GridView ID="gvHoteis" runat="server" EmptyDataText="Não existe hotel nesse pacote." CssClass="table table-striped table-bordered table-hover" GridLines="None" CellSpacing="-1" AutoGenerateColumns="false">
                                                                <Columns>

                                                                    <asp:TemplateField HeaderText="Cidade">
                                                                        <ItemTemplate>
                                                                            <strong>
                                                                                <asp:Label ID="lblCidadeIata" runat="server" Text='<%# Eval("Cidade") %>' Font-Size="Smaller" />
                                                                            </strong>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="Nome">
                                                                        <ItemTemplate>

                                                                            <asp:Label ID="lblNomeQuote1" runat="server" Text='<%# Eval("SuppNome") %>' />
                                                                            <strong>
                                                                                <asp:Label ID="lblCateg" runat="server" Text='<%# Eval("SuppNome") != null ? string.Format("{0} - {1}", Eval("Categoria"), Eval("Room")) : ""  %>' Font-Size="Smaller" /></strong>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="panel panel-default">
                                            <div class="panel-heading" role="tab" id="headingThree">
                                                <h4 class="panel-title">
                                                    <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">SERVIÇOS
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
                                                <div class="panel-body">

                                                    <div class="row">
                                                        <div class="col-md-8">
                                                            <asp:GridView ID="gvServicos" runat="server" EmptyDataText="Não existe serviço nesse pacote." CssClass="table table-striped table-bordered table-hover" GridLines="None" CellSpacing="-1" AutoGenerateColumns="false">
                                                                <Columns>

                                                                    <asp:TemplateField HeaderText="Cidade">
                                                                        <ItemTemplate>
                                                                            <strong>
                                                                                <asp:Label ID="lblCidadeIata" runat="server" Text='<%# Eval("Cidade") %>' Font-Size="Smaller" />
                                                                            </strong>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="Nome">
                                                                        <ItemTemplate>

                                                                            <asp:Label ID="lblNomeQuote2" runat="server" Text='<%# Eval("ServNome") %>' />


                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>

                                                </div>
                                            </div>
                                        </div>

                                        <div class="panel panel-default">
                                            <div class="panel-heading" role="tab" id="headingFour">
                                                <h4 class="panel-title">
                                                    <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">EXTRAS
                                                    </a>
                                                </h4>
                                            </div>
                                            <div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
                                                <div class="panel-body">

                                                    <div class="row">
                                                        <div class="col-md-8">
                                                            <asp:GridView ID="gvExtras" runat="server" EmptyDataText="Não existe serviço extra nesse pacote." CssClass="table table-striped table-bordered table-hover" GridLines="None" CellSpacing="-1" AutoGenerateColumns="false">
                                                                <Columns>

                                                                    <asp:TemplateField HeaderText="Cidade">
                                                                        <ItemTemplate>
                                                                            <strong>
                                                                                <asp:Label ID="lblCidadeIata" runat="server" Text='<%# Eval("Cidade") %>' Font-Size="Smaller" />
                                                                            </strong>
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                    <asp:TemplateField HeaderText="Nome">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblNomeQuote3" runat="server" Text='<%# Eval("ServExtraNome") %>' />
                                                                        </ItemTemplate>
                                                                    </asp:TemplateField>

                                                                </Columns>
                                                            </asp:GridView>
                                                        </div>
                                                    </div>

                                                </div>
                                            </div>
                                        </div>


                                    </div>


                                </ContentTemplate>
                            </asp:UpdatePanel>

                        </div>


                    </div>

                </div>

            </div>

            <div id="UpdateProgress"
                style="position: absolute; z-index: 1; left: 50%; top: 50%;">
                <asp:UpdateProgress ID="preLoading" runat="server"
                    AssociatedUpdatePanelID="">
                    <ProgressTemplate>

                        <asp:Image ID="imgLoading" runat="server"
                            ImageUrl="~/Images/ajax-loaderG.gif" />

                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>

        </div>

    </form>

</body>
</html>
